package com.ctg.behavior.client.impala.config;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

/*****************************************************
 * @Description CtImpala配置属性
 * @createTime 2020年07月08日 16:08:00
 */
@Data
@ConfigurationProperties(prefix = "ctg.impala.behavior")
@Component
public class CtImpalaConfig {

	// 是否采用num格式的时间: yyyyMMdd
	private Boolean numDayFormat = false;
	
	// 是否启动
	private Boolean lanuch = true;
	// IMPALA JDBC DRIVER
	private String jdbcDriver;
	// CONNECTION URL
	private String connectionUrl;
	
	private List<MockData> mockDatas = new ArrayList<>();

	@Data
	public static class MockData {
		private String mockKey;
		private List<Map<String, Object>> values = new ArrayList<>();
	}
	
}
